using System.Collections.Generic;

namespace Data.MapObject
{
    /// <summary>
    /// 科技数据的存档
    /// </summary>
    public class ScienceData
    {
        public readonly HashSet<int> UnlockScienceSet = new();

        /// <summary>
        /// 检测解锁
        /// </summary>
        public bool CheckUnlockScience(int ID)
        {
            return UnlockScienceSet.Contains(ID);
        }

        /// <summary>
        /// 添加科技
        /// </summary>
        public void AddScience(int ID)
        {
            if(!UnlockScienceSet.Contains(ID))
                UnlockScienceSet.Add(ID);
        }
    }
}